package ysq.xyg.recovery.service;

import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.recovery.model.po.RecoveryComplain;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.recovery.model.vo.RecoveryComplainVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 回收金模块-投诉表service接口
 *
 * @author congcong tao
 * @date 2019-7-30 20:19:27
 */
public interface RecoveryComplainService extends BaseService<RecoveryComplain> {

    /**
     * 分页查询
     *
     * @param recoveryComplainVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-7-30 20:19:27
     */
    ReturnEntity page(RecoveryComplainVo recoveryComplainVo, int pageSize, int pageNum);

    /**
     * 关联查询
     * @param recoveryComplainVo
     * @param pageSize
     * @param pageNum
     * @author congcong tao
     * @date 2019/8/26 16:17
     */
    ReturnEntity pageLeft(RecoveryComplainVo recoveryComplainVo, int pageSize, int pageNum);

    /**
     * 修改
     *
     * @param recoveryComplainVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-7-30 20:19:27
     */
    ReturnEntity addOrUpdate(RecoveryComplainVo recoveryComplainVo, SysUser currentUser);

    ReturnEntity addOrUpdate(HttpServletRequest request, RecoveryComplainVo recoveryComplainVo);

    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-7-30 20:19:27
     */
    ReturnEntity delete(String id, SysUser currentUser);

    /**
     * 获取集合
     *
     * @param recoveryComplainVo 对象
     * @return List<RecoveryComplain> RecoveryComplain集合
     * @author congcong tao
     * @date 2019-7-30 20:19:27
     */
    List<RecoveryComplain> acceptList(RecoveryComplainVo recoveryComplainVo);
}
